package router

import (
	"github.com/gin-gonic/gin"
	"nvr-http-proxy/internal/proxy"
)

func InitRouter(router *gin.Engine, newProxy *proxy.Proxy) {
	group := router.Group("/nvr/api")
	group.GET(`/edgeConfig`, newProxy.GetNvrConfig)
	//代理nvr服务
	router.Any("/proxy/*path", newProxy.ProxyHttpRequest)
}
